<?php
@require_once("toubu.php");
$userid=$_GET["userid"];
$str="SELECT * FROM gucciaddress WHERE userid= $userid";
$arr= mysql_query($str);

$list= array();
while($result=mysql_fetch_array($arr)){
    $temp=array();
    $temp["id"]=$result["id"];
    $temp["usertel"]=$result["usertel"];
    $temp["chenghu"]=$result["chenghu"];
    $temp["sheng"]=$result["sheng"];
    $temp["shi"]=$result["shi"];
    $temp["qu"]=$result["qu"];
    $temp["xiangxidizhi"]=$result["xiangxidizhi"];
    $list[]=$temp;
}

echo json_encode($list);

